// index.js
// 获取应用实例
const app = getApp()
Page({
	data: {
		list: [{
				iID: 1,
				sTitle: "全部"
			},
			{
				iID: 2,
				sTitle: "最美微光"
			},
			{
				iID: 3,
				sTitle: "榜样人物"
			},
			{
				iID: 4,
				sTitle: "最美家庭"
			},
			{
				iID: 5,
				sTitle: "导航55"
			},
			{
				iID: 6,
				sTitle: "导航66"
			}
		],
		newsList: [{
				iID: 1,
				sTitle: "这是文章的标题这是文章的标题这是文章的标题这是文章的标题这是文章的标题这是文章的标题这是文章的标题这是文章的标题",
				sIntroduction: "这是文章的简介这是文章的简介这是文章的简介这是文章的简介这是文章的简介这是文章的简介这是文章的简介这是文章的简介这是文章的简介",
				sContent: "这是文章的富文本内容",
				sVideos: "视频资源ID",
				iTime: 1646290050,
				iEditTime: "编辑时间",
				iNumzan: 999999,
				iNumComment: 999999,
				iNumShare: 999999,
				iUID: "发布者ID"
			},
			{
				iID: 4,
				sTitle: "XXX同志",
				sIntroduction: "XXX同志再退休后，积极践行党员的职责和义务，为社区居民服务。",
				sContent: "这是文章的富文本内容",
				sSources: 533,
				sVideos: "视频资源ID",
				iTime: 1646290050,
				iEditTime: "编辑时间",
				iNumShare: 5,
				iReadNum: 10,
				iUID: "发布者ID"
			},
			{
				iID: 2,
				sTitle: "这是文章的标题",
				sContent: "这是文章的富文本内容",
				sSources: 578,
				sVideos: "视频资源ID",
				iTime: 1646290050,
				iEditTime: "编辑时间",
				iNumComment: 0,
				iNumShare: 0,
				iUID: "发布者ID"
			},
			{
				iID: 3,
				sTitle: "这是文章的标题",
				sIntroduction: "",
				sContent: "这是文章的富文本内容",
				sSources: 0,
				sVideos: "视频资源ID",
				iTime: 1646290050,
				iEditTime: "编辑时间",
				iNumzan: '0',
				iNumComment: 0,
				iUID: "发布者ID"
			}

		]
	},
	FNPageGo: function (e) {
		var page = e.currentTarget.dataset.target;
		wx.navigateTo({
			url: page
		})
	},
	/**
	 * gcs-news-tab组件点击触发事件
	 */
	gcsTabListener: function (e) {
		let tabid = e.detail.tabID;
		console.log("点击的tabid为：" + tabid);
	},
	// 事件处理函数
	bindViewTap() {
		wx.navigateTo({
			url: '../logs/logs'
		})
	},

	onShow() {

	},

	onLoad() {
		//时间格式转换
		let [a,b,...c] = [1,2,3,4];
		console.log(a,b,c)
	},
	ChooseImage() {
		wx.$img_upload(function (res) {
			console.log(res);
		});
	},
})